package com.sdry.product.waitingarea.controller;


import com.sdry.common.TableDataInfo;
import com.sdry.product.waitingarea.entity.StayStock;
import com.sdry.product.waitingarea.service.StayStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * 备货计划库存
 * @author chenBin
 * @since 2020-03-17 16:19:06
 */
@Controller
@RequestMapping("stayStock")
public class StayStockController {

    @Resource
    private StayStockService stayStockService;

    /**
     * 库存展示
     * @return
     */
    @RequestMapping(value = "showStayStock")
    public String showStayStock() {
        return "/product/waitingarea/stock";
    }

    @RequestMapping(value = "queryStayStockPage")
    @ResponseBody
    public TableDataInfo queryStayStockPage(StayStock stayStock) {
        List<StayStock> stayStockList = stayStockService.queryStayStockPage(stayStock);
        Long total = stayStockService.queryStayStockTotal(stayStock);
        return null;
    }


}